import request from '@/utils/request';
import { autograph } from '@/utils/autograph';

// // 获取商品分类
export function getCategoryList(query) {
    const url = '';
    const data = autograph(url, query);
    return request({
        url: url,
        method: 'post',
        data
    });
}

// 获取轮播图
export function getBannerList(query) {
    const url = '';
    const data = autograph(url, query);
    return request({
        url: url,
        method: 'post',
        data
    });
}

// 获取个人资料信息
export function getUserInfo(query) {
    const url = '';
    const data = autograph(url, query);
    return request({
        url: url,
        method: 'post',
        data
    });
}
// 修改个人信息
export function editUser(query) {
    const url = '/User/userinfo';
    const data = autograph(url, query);
    return request({
        url: url,
        method: 'post',
        data
    });
}